package kkb.IOTest;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriteTest {

    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter("D://writetest.txt");

        fileWriter.append("好好学习，天天向上！！！").append("我爱学习【】").append("好好学习");
        fileWriter.flush();
        fileWriter.close();
        System.out.println("完成");

    }
}
